package com.test.common;

public class SynchLongCounter implements Counter {
    private Long counter = 0l;

    @Override
    public int getCounter() {
        return counter.intValue();
    }

    @Override
    public void increament() {
        synchronized (this) {
            counter++;
        }
    }
}
